@import '~antd/lib/style/themes/default.less';
@import '~@/utils/utils.less';

.icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
}

.staffPhoto {
    font-size: 28px;
    vertical-align: middle;
    color: #1890FF;
}

.staffPhotoNum {
    padding-left: 5px;
    vertical-align: middle;
}

.staffPhotoContainer {
    width: 120px;
    padding: 0 15px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    cursor: pointer;
}

.nativePlace {
    :global {
        background: #fff !important;
        color: #333;
        i {
            display: none;
        }
        input {
            border: none !important;
            background: #fff;
        }
    }
}

.proUsertableList {
    :global {
        .ant-table-body {
          overflow: auto !important;
        }
        
        .ant-table-thead > tr >th{
            white-space: nowrap;
        }
        
        .ant-table-tbody > tr > td{
            white-space: nowrap; 
        }
        
        .ant-table-thead .react-resizable {
          position: relative;
          background-clip: padding-box;
        }

        .ant-table-thead .react-resizable-handle {
          position: absolute;
          width: 10px;
          height: 100%;
          bottom: 0;
          right: -5px;
          cursor: col-resize;
          z-index: 1;
        }
        
        .ant-table-thead .react-resizable:nth-last-child(1) .react-resizable-handle {
          position: absolute;
          width: 0px;
          height: 100%;
          bottom: 0;
          right: -5px;
          cursor: col-resize;
          z-index: 1;
        }
    }
    
  .proUsertableListOperator {
    margin-bottom: 16px;
    button {
      margin-right: 8px;
    }
  }
  .downloadButton {
    height: 32px;
    color: #fff;
    background-color: #13ce66;
    border-color: #13ce66;
    border-radius: 4px;
    padding: 0 15px;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.12);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.045);
    outline: none;
    border: 1px solid transparent;
    cursor: pointer;
    float: right;
    vertical-align: middle;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    &:active {
        background-color: #4caf50;
        border-color: #4caf50;
        opacity: 1;
    }
    &:hover {
        opacity: 0.8;
    }
  }
  
  .upload_wrap {
      display: inline-block;
      position: relative;
      padding: 0 15px;
      overflow: hidden;
      float: right;
      cursor: pointer;
    }

    .file_uploader {
      position: absolute;
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
      outline: none;
      opacity: 0;
      background-color: transparent;
      cursor: pointer;
    }
}



.proUsertableListForm {
  :global {
    .ant-form-item {
      display: flex;
      margin-right: 0;
      margin-bottom: 24px;
      > .ant-form-item-label {
        width: auto;
        padding-right: 8px;
        line-height: 32px;
      }
      .ant-form-item-control {
        line-height: 32px;
      }
    }
    .ant-form-item-control-wrapper {
      flex: 1;
    }
  }
  .submitButtons {
    display: block;
    margin-bottom: 24px;
    white-space: nowrap;
  }
}

.editStaffColumn {
    :global {
        .ant-modal-header {
            border: none !important;
        }
    }
    
    .staffColumnTitle {
//      border-bottom: 1px solid #f2f6fc;
        padding-bottom: 10px;
        margin-bottom: 15px;
        font-size: 14px;
        font-weight: 700;
    }
    .staffColumnOption {
        border-bottom: 1px solid #f2f6fc;
        padding-bottom: 10px;
        margin-bottom: 15px;
        font-size: 14px;
        margin-top: 25px;
        font-weight: 700;
    }
    
    .staffColumnTag {
        padding: 5px 5px;
        cursor: move;
        background: #e4e7ed;
        color: #999;
    }
    
    .staffColumnTagAdd {
        padding: 5px 5px;
        cursor: move;
        color: #fff;
    }
    
    .staffOptionColumnTag {
        position: relative;
        padding: 5px 5px;
        color: #333;
        background: #fff;
        margin-right: 10px;
        cursor: pointer;
    }
    
    .addOptionTag {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 30px;
        line-height: 30px;
        background: #333;
        opacity: 0;
        color: #fff;
        text-align: center;
        border-radius: 4px;
        &:hover {
           opacity: 0.9;
        }
    }
}

.staffAvatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

.cardMark {
    width: 4px;
    height: 18px;
    background-color: #1890FF;
    position: absolute;
    top: 14px;
    left: 8px;
    border-radius: 4px;
}


.staffcontainer {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 50px;
    line-height: 50px;
    text-align: center;
    &:before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        border: 3px dashed #c0c4cc;
        z-index: 0;
        margin: -2px;
    }
    
}

.eduContainer {
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    padding-bottom: 3px;
    .eduEdit {
        display: inline-block;
        color: #1890FF;
        margin-right: 15px;
        cursor: pointer;
    }
}


@media screen and (max-width: @screen-lg) {
  .proUsertableListForm :global(.ant-form-item) {
    margin-right: 24px;
  }
}

@media screen and (max-width: @screen-md) {
  .proUsertableListForm :global(.ant-form-item) {
    margin-right: 8px;
  }
}
